package com.lkx.farmershop.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.io.Serializable;

/**
 * (TuanMember)实体类
 *
 * @author makejava
 * @since 2025-01-29 21:35:22
 */
@Setter
@Getter
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TuanMember implements Serializable {
    private static final long serialVersionUID = 213061226167786770L;
/**
     * 唯一id
     */
    @TableId
    private Long id;
/**
     * 组团id
     */
    private Long tuanId;
/**
     * 成员id
     */
    private Long memberId;
    /**
     * 是否为组团发起人
     */
    private Boolean isInitiator = false;

    public TuanMember(Long tuanId, Long memberId, Boolean isInitiator) {
        this.tuanId = tuanId;
        this.memberId = memberId;
        this.isInitiator = isInitiator;
    }

}

